package cn.crex1.xiaomi.core.mvc.context;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

@WebListener
public class ContextListener extends ContextLoader implements ServletContextListener {
	
    public ContextListener() {
    	super();
	}
	public void contextDestroyed(ServletContextEvent sce)  { 
        destroyWebContext();
    }	
    public void contextInitialized(ServletContextEvent sce)  { 
    	createWebContext(sce.getServletContext());
    }
	
}
